package com.huawei.hms.support.api.hwid;

import com.huawei.hms.api.Api;
import com.huawei.hms.api.Api.Options;
import com.huawei.hms.api.HuaweiApiAvailability;
import com.huawei.hms.support.api.entity.auth.PermissionInfo;
import com.huawei.hms.support.api.entity.auth.Scope;
import com.huawei.hms.support.api.entity.hwid.HwIDConstant.SCOPE;
import java.util.List;

public class HuaweiId {
    public static final Scope HUAEWEIID_BASE_SCOPE = new Scope(SCOPE.ACCOUNT_BASEPROFILE);
    public static final HuaweiIdApi HuaweiIdApi = new HuaweiIdApiImpl();
    public static final Api<HuaweiIdSignInOptions> SIGN_IN_API = new Api(HuaweiApiAvailability.HMS_API_NAME_ID, a);
    private static final Options<HuaweiIdSignInOptions> a = new Options<HuaweiIdSignInOptions>() {
        public /* synthetic */ List getPermissionInfoList(Object obj) {
            return b((HuaweiIdSignInOptions) obj);
        }

        public /* synthetic */ List getScopeList(Object obj) {
            return a((HuaweiIdSignInOptions) obj);
        }

        public List<Scope> a(HuaweiIdSignInOptions huaweiIdSignInOptions) {
            return huaweiIdSignInOptions.getScopeList();
        }

        public List<PermissionInfo> b(HuaweiIdSignInOptions huaweiIdSignInOptions) {
            return huaweiIdSignInOptions.getPermissionInfos();
        }
    };
}
